<?php
    //kpr($content);die;
?>
<div id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>>
    <?php print render($title_prefix); ?>
    <?php print render($title_suffix); ?>
    <div class="node-content clearfix product-teaser"<?php print $content_attributes; ?>>
        <?php
        // We hide the comments and links now so that we can render them later.
        hide($content['comments']);
        hide($content['links']);
        ?>

        <a href="<?php print $node_url;?>">

            <?php if(isset($content['product:field_product_image'])):?>
                <div class="product-img">
                    <?php print render($content['product:field_product_image']);?>
                </div>
            <?php endif;?>
            <?php if(isset($content['field_product_review'])):?>
                <div class="star-rating">
                    <?php print render($content['field_product_review']);?>
                </div>
            <?php endif;?>

            <?php if(isset($content['product:commerce_price'])):?>
                <span class="price">
                    <span class="amount"><?php print render($content['product:commerce_price']);?></span>
                </span>
            <?php endif;?>

        </a>

        <div class="bg-shop">
            <h4><a href="<?php print url(base_url().'/node/'.$node->nid);?>"><?php print $title;?></a></h4>
            <div class="line_under">
                <div class="line_left"></div>
                <div class="line_center"></div>
                <div class="line_right"></div>
            </div>

            <?php if(isset($content['field_product_summary'])):?>
                <div class="summary-teaser">
                    <?php print render($content['field_product_summary']);?>
                </div>
            <?php endif;?>

            <?php if(isset($content['field_product'])):?>
                <div class="add-to">
                        <?php print render($content['field_product']);?>
                </div>
            <?php endif;?>

        </div>


        <?php
        hide($content['product:field_product_images']);
        hide($content['product:title']);
        hide($content['product:commerce_price']);
        hide($content['field_product']);
        hide($content['field_product_review']);
            print render($content);
        ?>
    </div>
<?php
    // Remove the "Add new comment" link on the teaser page or if the comment
    // form is being displayed on the same page.
    if ($teaser || !empty($content['comments']['comment_form'])) {
        unset($content['links']['comment']['#links']['comment-add']);
    }
    // Only display the wrapper div if there are links.
    $links = render($content['links']);
    if ($links):
        ?>

    <?php endif; ?>

    <?php if ($display_submitted): ?>
        <div class="meta submitted">
            <?php print $user_picture; ?>
            <?php print $submitted; ?>
        </div>
    <?php endif; ?>
    <?php print render($content['comments']); ?>

</div>
